import React from 'react';
import ReactDOM from 'react-dom';
//主页面
import App from './App';
// 页面路由
import { Router, BrowserRouter, Route } from "react-router-dom";
// 自定义本地服务器配置
import registerServiceWorker from './utils/registerServiceWorker';
// 引入redux
import { Provider } from 'react-redux';
import store from './redux/store';
// 加载history
import history from './utils/history';

// ReactDOM.hydrate(

ReactDOM.render(
  <Provider store={store}>
    <Router history={history}>
      <Route component={App}></Route>
    </Router>
  </Provider>, document.getElementById('root'));
registerServiceWorker();
